how to create a flashcards project javascript